package model

import "time"

type BaseModel struct {
	ID       int64      `gorm:"primaryKey;autoIncrement;column:id"`
	AddDate  *time.Time `gorm:"column:add_date" `
	LastDate *time.Time `gorm:"column:last_date"`
}

type CatalogModel struct {
	BaseModel
	Name     *string `gorm:"column:name;size:255"`
	ParentID *int64  `gorm:"column:parent_id"`
	SortNum  *int64  `gorm:"column:sort_num"`
}
